<template>
    <view>
		<image :src="url" class="code" mode="widthFix"></image>
	</view>
</template>
<script>
export default {
	data(){
		return{
			url:''
		}
	},
    onLoad() {
		let that = this
		uni.getStorage({
		    key: 'payCode',
		    success: function (res) {
		        that.url = res.data
		    }
		});       
    }
};
</script>
<style scoped>
	.code{
		width: 70%;
		position: fixed;
		top: 50%;
		left: 50%;
		transform: translate(-50%,-50%);
		border: solid 4rpx #fff;
		border-radius: 10rpx;
	}
</style>